package com.billing.model.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.billing.model.entity.TOrganization;
import com.billing.model.entity.TRoleMembers;

public interface OrganizationBeanMapper {

	/**
	 * 根据id获取企业信息
	 * @param id
	 * @return
	 */
	public TOrganization getTOrganizationByid(@Param("id")int id);
	/**
	 * 修改企业信息
	 * @param organization
	 * @return
	 */
	public int updateTOrganization(TOrganization organization);
	/**
	 * 新增企业
	 * @param organization
	 * @return
	 */
	public int saveTOrganization(TOrganization organization);
	/**
	 * 保存rolemembers
	 * @param roleMembers
	 * @return
	 */
	public int insertMembers(TRoleMembers roleMembers);
	/**
	 * 根基登录名获取企业信息
	 * @param username
	 * @return
	 */
	public List<TOrganization> getTOrganization(@Param("name")String name,@Param("status")int status,@Param("username")String username,@Param("pageSize")int pageSize,@Param("currentPage")int currentPage);
	/**
	 * 查询公司条数
	 * @param username
	 * @return
	 */
	public int getTOganizationNum(String username);
	
}
